package vn.vfriends.mcms.admin.service;

import java.io.Serializable;
import java.util.List;
import vn.vfriends.mcms.admin.model.Site;
import vn.vfriends.mcms.admin.model.User;

/**
 *
 * @author tuan@vfriends.vn
 */
public interface SiteService extends Serializable {
    
    public void createSite(Site site) throws Exception;
    
    public void editSite(Site site) throws Exception;
    
    public void destroySite(Long id) throws Exception;
    
    public List<Site> findSites();
    
    public List<Site> findSitesByUser(User user);
    
    public List<Site> findSites(int maxResults, int firstResult);
    
    public Site findSite(Long id);
    
    public int getSiteCount();
    
    public void deploySite(String siteName) throws Exception;
    
    public Site findSiteByName(String name);
}
